package com.badlogic.androidgames.framework.impl;

import com.badlogic.androidgames.framework.impl.GLGame.GLGameState;

import android.app.Dialog;
import android.content.Context;

public class MyDialog extends Dialog
{
	GLGame g;
	MyDialog(Context c, GLGame g)
	{
		super(c);
		this.g = g;
	}
	
	@Override
	public void hide() {
		super.hide();		
	}
	
	public void hideAndResume() {
		super.hide();
        g.state = GLGameState.Running;
		//g.onResume();
	}
	
	@Override
	public void onBackPressed() {
		super.onBackPressed();
		g.state = GLGameState.Running;
		//g.onResume();
	}
}